<style>
#load{
    width:100%;
    height:100%;
    position:fixed;
    z-index:9999;
    background:url("images/loading_bar.gif") no-repeat center center #fff;
}
</style>
<script>
document.onreadystatechange = function () {
  var state = document.readyState
  if (state == 'interactive') {
       document.getElementById('contents').style.visibility="hidden";
  } else if (state == 'complete') {
      setTimeout(function(){
         document.getElementById('interactive');
         document.getElementById('load').style.visibility="hidden";
         document.getElementById('contents').style.visibility="visible";
      },300);
  }
}
</script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script src="js/webserviceurl.js"></script>
<script src="js/validations.js"></script>
<script src="js/commonfunctions.js"></script>
<script src="js/text.js"></script>
<link href="css/style.css" rel="stylesheet">
<link href="css/default.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<script>
$(function() {
$('#header').load('header.html');
$('#footer').load('footer.html');
   var path = window.location.href;
   path = path.replace(/\/$/, "");
   path = decodeURIComponent(path);
       var id=path.split('=');
       var token=id[1];
    $.ajax({
		type		:	'GET',
		url			:  	webServiceUrl+'forgetpassword/'+token,
		dataType	: 	"json",
		success: function(data){
			if(data.value==0){
				window.location="expire-password.html";
			}
		}
	});

});
</script>
<div id="load"></div>
<div id="contents">
  <div id="header"></div>
    <div class="container-fluid">
      <div class="row-fluid container_bg">
        <div class="span9 pos_r">
			<div class="container_title">
				<div class=""><h1>Reset Password</h1></div>
				<div  id="success_alert" class="alert_sucess alert alert-success span11" style="display:none;">
					<i class="icon-ok"></i>&nbsp;&nbsp;
					<span  id="errorSuccess"></span>
				</div>
				<div  id="error_alert" class="alert_sucess alert alert-error span11" style="display:none;">
					<i class="icon-remove"></i>&nbsp;&nbsp;
					<span  id="errorSuccessError"></span>
				</div>
				<div class="container_form_top">
				<form class="form-horizontal" id="Resetpassword" name="Resetpassword">
					<div class="control-group">
						<label class="control-label" for="resetpassword">Reset Password</label>
						<div class="controls">
						<input type="password" class="span8" id="resetPassword" name="resetPassword" placeholder="Please enter resetPassword"><span id="errorResetpassword"  name="errorResetpassword" style="color:red"></span>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="Confirmpassword">Confirm Password</label>
						<div class="controls">
						<input type="password" class="span8" id="Confirmpassword" name="Confirmpassword" placeholder="Please enter confirm password"><span id="errorConfirmpassword" name="errorConfirmpassword" style="color:red"></span>
						</div>
					</div>
					<div class="control-group">
						<div class="controls">
						<button type="button" class="medicart_btn" onclick="passwordReset()">SAVE</button><span id="resetPasswordReload"></span>
				</fieldset>
						</div>
					</div>
				</form>
				</div>
			</div>
          
        </div><!--/span-->
      </div><!--/row-->
    </div><!--/.fluid-container-->
<div id="footer"></div>
</div>
<script>
$('#Confirmpassword').keypress(function(e){
	if( e.keyCode == 13 ){
		passwordReset();	
	}
});
</script>
